package com.sean.findme.enjoy;

import java.util.HashMap;
import java.util.Map;

import android.app.ActivityGroup;
import android.content.Context;

import com.sean.findme.FmActivityInfo;
import com.sean.findme.FmActivityManager;
import com.sean.findme.R;

public class EnjoyActivityManager extends FmActivityManager{
	
	private Context mContext;
	private static EnjoyActivityManager instance = null; 

	public EnjoyActivityManager(Context mContext) {
		super(mContext);
		this.mContext = mContext;
		instance = this;
	}
	
	public static EnjoyActivityManager getInstance()
	{
		if( instance == null )
			instance = new EnjoyActivityManager(null);
		return instance;
	}

	@Override
	public void configFirstActivity(Context mContext) {
		HashMap<String,String> map = new HashMap<String,String>();
		map.put("title", mContext.getResources().getString(R.string.enjoy_tab));
		FmActivityInfo info = new FmActivityInfo(EnjoyMain.class, (ActivityGroup)mContext, map);
		this.getListActivityInfo().push(info);
		
		super.configFirstActivity(mContext);
	}
	
	

}
